using System;
using System.Collections.Generic;
using Newtonsoft.Json;
using FreeSql.DataAnnotations;

namespace FreeSqlLearn {

	[JsonObject(MemberSerialization.OptIn), Table(DisableSyncStructure = true)]
	public partial class rq_shunt_record {

		[JsonProperty, Column(IsPrimary = true)]
		public Guid shunt_record_id { get; set; }

		/// <summary>
		/// 审批ID
		/// </summary>
		[JsonProperty]
		public Guid? approval_id { get; set; }

		/// <summary>
		/// 审批不通过原因
		/// </summary>
		[JsonProperty, Column(DbType = "varchar(255)")]
		public string approval_not_through_reason { get; set; }

		/// <summary>
		/// 审批时间
		/// </summary>
		[JsonProperty]
		public DateTime? approval_time { get; set; }

		[JsonProperty]
		public DateTime? created_date { get; set; }

		[JsonProperty]
		public Guid? fom_coach_id { get; set; }

		/// <summary>
		/// 调车申请教练
		/// </summary>
		[JsonProperty, Column(DbType = "varchar(100)")]
		public string from_coach { get; set; }

		/// <summary>
		/// 调车科目
		/// </summary>
		[JsonProperty]
		public int? km { get; set; }

		/// <summary>
		/// 0 申请 1 教练接受  2教练不接受  3审批通过  4审批不通过
		/// </summary>
		[JsonProperty]
		public int? state { get; set; }

		/// <summary>
		/// 学员id
		/// </summary>
		[JsonProperty]
		public Guid? student_id { get; set; }

		/// <summary>
		/// 调车接收教练
		/// </summary>
		[JsonProperty, Column(DbType = "varchar(100)")]
		public string to_coach { get; set; }

		/// <summary>
		/// 调车接收教练操作时间
		/// </summary>
		[JsonProperty]
		public DateTime? to_coach_accept_time { get; set; }

		[JsonProperty]
		public Guid? to_coach_id { get; set; }

		/// <summary>
		/// 调车接收教练不接受原因
		/// </summary>
		[JsonProperty, Column(DbType = "varchar(255)")]
		public string to_coach_not_accept_reason { get; set; }

	}

}
